package com.ygp.jmm.visible;


import com.ygp.utils.Sleeper;
import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.Visible")
public class Visible {
    static   boolean runCondition = true;
//    static boolean runCondition = true;

    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            while (true) {
//                System.out.println(runCondition);
                if (!runCondition) {
                    break;
                }
            }
        });
        t.start();
        Sleeper.sleep(1);
        runCondition = false;
        log.debug("结束。。。");
    }
}
